<!DOCTYPE html>
<html>
    <head>
	<meta charset="utf-8">
    <title> __PUBLIC__</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__PUBLIC__/style/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/style/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/style/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/style/typicons.css" rel="stylesheet">
    <link href="__PUBLIC__/style/animate.css" rel="stylesheet">
    <style type="text/css">
        .goodintro{float: left;line-height: 40px;color: #999;width: 80px;height:40px;text-align: center;}
        .btnclas{background: #2DC3E8;color:#fff;}
        .absolutediv{display: none;}
    </style>

    </head>
<body>
	<!-- 头部 -->
	{include file='common/header'}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			<!-- Page Sidebar -->
            {include file='common/left'}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="javascript:void(0)">系统</a>
                        </li>
                        <li class="active">
                            <a href="{:url('article/lists')}">文章管理</a>
                        </li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                <!-- Page Body -->
                <div class="page-body">
                    <div class="row">
                        <div class="col-lg-12 col-sm-12 col-xs-12">
                            <div class="widget">
                                <div class="widget-header bordered-bottom bordered-blue">
                                    <span class="widget-caption">修改机票信息</span>
                                </div>
                                <div class="widget-body">
                                    <div id="horizontal-form">
                                        <form class="form-horizontal" role="form" action="{:url('Websites/edit')}" method="post">
                                            <div class="form-group">
                                                <label for="username" class="col-sm-2 control-label no-padding-right">航空公司名称</label>
                                                <div class="col-sm-6">
                                                    <input type='hidden' name='type' value='{$type}'>
                                                    <input type="hidden" name="_id" {if condition='$type=="2"'} value="{$result[0]['_id']}" {/if}>
                                                    <input type="hidden" name="specials"  {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['specials']}" {else/} value="" {/if}>
                                                    <input type="hidden" name="click" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['click']}" {else/} value="0" {/if}>
                                                    <input class="form-control" id="airname" placeholder="" name="airname"  type="text" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['airname']}" {/if}>
                                                </div>
                                                <p class="help-block col-sm-4 red">* 必填</p>
                                            </div>

                                            <div class="form-group">
                                                <label for="group_id" class="col-sm-2 control-label no-padding-right">始发地</label>
                                                <div class="col-sm-6">
                                                    <input class="form-control" id="startplace" placeholder="" name="startplace"  type="text" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['startplace']}" {/if}>
                                                </div>
                                                <p class="help-block col-sm-4 red">* 必填</p>
                                            </div>  
                                            <div class="form-group">
                                                <label for="group_id" class="col-sm-2 control-label no-padding-right">目的地</label>
                                                <div class="col-sm-6">
                                                    <input class="form-control" id="endplace" placeholder="" name="endplace"  type="text" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['endplace']}" {/if}>
                                                </div>
                                                <p class="help-block col-sm-4 red">* 必填</p>
                                            </div> 
                                            <div class="form-group">
                                                <label for="group_id" class="col-sm-2 control-label no-padding-right">起飞时间</label>
                                                <div class="col-sm-6">
                                                    <input class="form-control" id="flytime" placeholder="" name="flytime"  type="text" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['flytime']}" {/if}>
                                                </div>
                                                <p class="help-block col-sm-4 red">* 必填</p>
                                            </div>
                                            <div class="form-group">
                                                <label for="group_id" class="col-sm-2 control-label no-padding-right">价格</label>
                                                <div class="col-sm-6">
                                                    <input class="form-control" id="price" placeholder="" name="price"  type="text" {if condition='$type=="2"'} value="{$result[0]['singleinfo'][0]['price']}" {/if}>
                                                </div>
                                                <p class="help-block col-sm-4 red">* 必填</p>
                                            </div>
                                            <div class="form-group">
                                                <div class="col-sm-offset-2 col-sm-10">
                                                    <button type="submit" class="btn btn-default"> 
                                                        {if condition='$type=="2"'}保存信息{/if} 
                                                        {if condition='$type=="1"'}添加{/if}
                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__PUBLIC__/style/jquery_002.js"></script>
    <script src="__PUBLIC__/style/bootstrap.js"></script>
    <script src="__PUBLIC__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__PUBLIC__/style/beyond.js"></script>
    
    <script type="text/javascript">
        
    </script>

</body></html>